<!DOCTYPE html>
<html>
<head>
	<meta http-equiv="Content-Type" content="text/html;charset=utf-8"/>
	<title>管理员管理</title>
	<meta name="renderer" content="webkit">
	<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
	<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
	<meta name="apple-mobile-web-app-status-bar-style" content="black">
	<meta name="apple-mobile-web-app-capable" content="yes">
	<meta name="format-detection" content="telephone=no">
	<link rel="stylesheet" href="../../layui/css/layui.css" media="all" />
	<link rel="stylesheet" href="../../css/public.css" media="all" />
</head>
<body class="childrenBody">
	<!--查询和工具栏开始-->
		<form class="layui-form " action="" method="post" id="searchFrm" lay-filter="searchFrm">
				<div class="layui-inline">
					<input type="text" class="layui-input searchVal" placeholder="请输入管理员姓名" />
				</div>
				<button type="button" class="layui-btn search_btn" id="search_btn" lay-filter="search_btn"><span class="layui-icon layui-icon-search"></span>搜索</button>
				<div class="layui-inline">
					<button type="button" class="layui-btn layui-btn-normal add_btn" id="add_btn" lay-filter="add_btn"><i class="layui-icon">&#xe608;</i>添加</button>
				</div>
		</form>
	<!--查询和工具栏结束-->
	<br><!--yw 分隔-->
	<!--数据表格开始-->
	<div class="layui-col-md6"><!--yw 确定宽度-->
		<table id="list" lay-filter="list" ></table><!--yw 显示列表数据-->
		<!--行工具条-->
		<div id="listRowBar" style="display:none;">
			<a><i class="layui-icon" lay-event="edit">&#xe642;</i></a>
			<a><i class="layui-icon" lay-event="del">&#xe640;</i></a>
		</div>
	</div>
	<!--数据表格结束-->
	<!-- 新增弹出层开始-->
	<div style="display:none;padding:10px" id="addDiv">
		<form action="" method="post" class="layui-form" id="dataFrm" lay-filter="dataFrm">
			<div class="layui-form-item">
				<label class="layui-form-label">学校</label>
				<div class="layui-input-block">
					<select name="schoolId"  id="schoolId">
						<option value=""></option>
					</select>
				</div>
			</div>
			<div class="layui-form-item">
				<label class="layui-form-label"><span style="color:red;">*</span>用户名</label>
				<div class="layui-input-block">
					<input type="text" name="userName" autocomplete="off" class="layui-input" id="userName" lay-verify="required|lenLimit20">
				</div>
			</div>
			<div class="layui-form-item">
				<label class="layui-form-label">管理员姓名</label>
				<div class="layui-input-block">
					<input type="text" name="userRealname" autocomplete="off" class="layui-input" id="userRealname" lay-verify="lenLimit20">
				</div>
			</div>
			<div class="layui-form-item">
				<label class="layui-form-label"><span style="color:red;">*</span>登录密码</label>
				<div class="layui-input-block">
					<input type="password" name="userPwd"  id = "userPwd" lay-verify="required|userPwd" class="layui-input">
				</div>
			</div>
			<div class="layui-form-item">
				<label class="layui-form-label"><span style="color:red;">*</span>确认密码</label>
				<div class="layui-input-block">
					<input type="password" lay-verify="required|userPwdCheck" class="layui-input">
				</div>
			</div>
			<div class="layui-form-item">
				<label class="layui-form-label"><span style="color:red;">*</span>手机号码</label>
				<div class="layui-input-block">
					<input type="text" name="title" autocomplete="off" class="layui-input" id="userTel" lay-verify="required|phone">
				</div>
			</div>
			<div class="layui-form-item">
				<label class="layui-form-label">备注</label>
				<div  class="layui-input-block" >
					<input type="text" name="title" autocomplete="off" class="layui-input" id="userRemark" lay-verify="lenLimit50">
				</div>
			</div>
			<div class="layui-form-item">
				<div class="layui-input-block" style="text-align: center;">
					<button type="button" class="layui-btn" lay-submit id="doSubmitAdd" lay-filter="doSubmitAdd"><i class="layui-icon">&#xe654;</i>新增</button>
					<button type="reset" class="layui-btn layui-btn-warm" ><i class="layui-icon">&#xe669;</i>重置</button>
				</div>
			</div>
		</form>
	</div>
	<!-- 新增弹出层结束-->
	<!-- 修改弹出层开始-->
	<div style="display:none;padding:10px" id="saveDiv">
		<form action="" class="layui-form" id="dataFrm2" lay-filter="dataFrm2">
			<div class="layui-form-item">
				<label class="layui-form-label">学校</label>
				<div class="layui-input-block">
					<input type="hidden" id="userId" name="userId">
					<select name="schoolId2"  id="schoolId2">
						<option value=""></option>
					</select>
				</div>
			</div>
			<div class="layui-form-item">
				<label class="layui-form-label"><span style="color:red;">*</span>手机号码</label>
				<div class="layui-input-block">
					<input type="text" name="userTel2" autocomplete="off" class="layui-input" id="userTel2" lay-verify="required|phone">
				</div>
			</div>
			<div class="layui-form-item">
				<label class="layui-form-label"><span style="color:red;">*</span>用户名</label>
				<div class="layui-input-block">
					<input type="text" name="userName2" autocomplete="off" class="layui-input" id="userName2" lay-verify="required|username">
				</div>
			</div>
			<div class="layui-form-item">
				<label class="layui-form-label">管理员姓名</label>
				<div class="layui-input-block">
					<input type="text" name="userRealname2" autocomplete="off" class="layui-input" id="userRealname2" lay-verify="lenLimit20">
				</div>
			</div>
			<div class="layui-form-item">
				<label class="layui-form-label">登录密码</label>
				<div class="layui-input-block">
					<input type="password" name="userPwd2"  id="userPwd2" class="layui-input" lay-verify="userPwd">
				</div>
			</div>
			<div class="layui-form-item">
				<label class="layui-form-label">角色</label>
				<div  class="layui-input-block layui-form">
					<select name="roleId2" id="roleId2">
						<option value="0"></option>
						<option value="1">教师</option>
						<option value="2">管理员</option>
					</select>
				</div>
			</div>
			<div class="layui-form-item">
				<label class="layui-form-label">授权码</label>
				<div class="layui-input-block">
					<input type="text" name="authCode" autocomplete="off" class="layui-input" id="authCode"  lay-verify="lenLimit20">
				</div>
			</div>
			<div class="layui-form-item">
				<label class="layui-form-label">用户状态</label>
				<div class="layui-input-block">
					<input type="text" name="userState" autocomplete="off" class="layui-input" id="userState"  lay-verify="lenLimit20">
				</div>
			</div>
			<div class="layui-form-item">
				<label class="layui-form-label">职务</label>
				<div  class="layui-input-block" >
					<input type="text" name="post" autocomplete="off" class="layui-input" id="post"  lay-verify="lenLimit20">
				</div>
			</div>
			<div class="layui-form-item">
				<label class="layui-form-label">备注</label>
				<div  class="layui-input-block" >
					<input type="text" name="title" autocomplete="off" class="layui-input" id="userRemark2"  lay-verify="lenLimit50">
				</div>
			</div>
			<div class="layui-form-item">
				<div class="layui-input-block" style="text-align: center;">
					<button type="button" class="layui-btn" lay-submit id="doSubmitSave" lay-filter="doSubmitSave"><i class="layui-icon">&#xe605;</i>保存</button>
					<button type="reset" class="layui-btn layui-btn-warm" ><i class="layui-icon">&#xe669;</i>重置</button>
				</div>
			</div>
		</form>
	</div>
	<!--修改弹出层结束-->

	<script type="text/javascript" src="../../layui/layui.js"></script>
	<script type="text/javascript" src="adminMag.js"></script>
</body>
</html>
